Adwaita: Move placessidebar-specific sizing from .navigation-sidebar
authornana-4 <hnmaigo@gmail.com>
Sun, 22 Nov 2020 03:14:34 +0000 (12:14 +0900)
committerJakub Steiner <jimmac@gmail.com>
Mon, 23 Nov 2020 09:51:58 +0000 (10:51 +0100)
The common .navigation-sidebar styling should be more generic.

gtk/theme/Adwaita/_common.scss

index a5074872beb2e1603e0cda80298d6bc7777455e9..af54488a8078fafb6f38b0259307626df4334e06 100644 (file)
@@ -3596,16 +3596,11 @@ separator.sidebar {
   padding: $menu-margin 0; //only vertical padding. horizontal row size would clip
 
   > row {
-    // Needs overriding of the GtkListBoxRow padding
     min-height: 36px;
-    padding: 0px 2px;
+    padding: 0 8px;
     border-radius: $menu-margin;
     margin: 0 $menu-margin;
 
-    // Using margins/padding directly in the SidebarRow
-    // will make the animation of the new bookmark row jump
-    > revealer { padding: 0 14px; }
-
     &:selected {
       background-color: $menu_selected_color;
       color: $fg_color;
@@ -3647,9 +3642,14 @@ row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sid
 */
 
 placessidebar {
-  row:not(:last-child) { //FIXME: specificty bump hack
+  .navigation-sidebar > row {
+    // Needs overriding of the `.navigation-sidebar > row` padding
     padding: 0;
 
+    // Using margins/padding directly in the SidebarRow
+    // will make the animation of the new bookmark row jump
+    > revealer { padding: 0 14px; }
+
     image.sidebar-icon {
       &:dir(ltr) { padding-right: 8px; }
       &:dir(rtl) { padding-left: 8px; }